package com.atguigu.iterator2;

import java.util.ArrayList;
import java.util.List;

public class Client {

	public static void main(String[] args) {
		// 创建学院
		List<Aggregate> collegeList = new ArrayList<Aggregate>();

		// 计算机学院
		AggregateForComputerCo computerCollege = new AggregateForComputerCo();
		// 信息学院
		AggregateForInfoCo infoCollege = new AggregateForInfoCo();

		collegeList.add(computerCollege);
		collegeList.add(infoCollege);

		// 输出
		OutPutImpl outPutImpl = new OutPutImpl(collegeList);
		outPutImpl.printCollege();
	}
}
